package com.pf.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author PanFei
 * @version 1.0.0
 * @createTime 2021/12/19 20:01
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(value = "register_user_table")
public class RegisterUser {
    /**
     * 用户id
     */
    @TableId(value = "user_id")
    private String userId;

    /**
     * 用户账号
     */
    private String account;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户密码盐值
     */
    private String salt;

    /**
     * 激活码
     */
    private String activationCode;

    /**
     * 账号激活截止时间
     */
    private LocalDateTime activationDeadline;

    /**
     * 账号是否有效
     */
    private Integer isEffective;
}
